<template>
  <div>
    <el-button @click="back">返回</el-button>
    <hello-world></hello-world>
  </div>
</template>

<script>
  import { useRouter } from '@/hooks/router'
  export default defineComponent({
    name: 'ContentPage',
    setup() {
      const router = useRouter()
      function back() {
        router.back(-1)
      }
      return { back }
    }
  })
</script>

<style lang="scss" scoped></style>
